<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>12-CSS三角强化的巧妙运用</title>
  <style>
    .box1 {
      width: 0;
      height: 0;

      /* 四个边框分别组成四个三角形 */

      /* 设置一个直角三角形 */
      /* border-top: 100px solid transparent;
      border-right: 60px solid seagreen;
      border-left: 0 solid sienna;
      border-bottom: 0 solid skyblue; */

      /* 简写 */
      border-color: transparent red transparent transparent;
      border-style: solid;
      /* 上边框要大 右边框宽度稍微小 */
      border-width: 100px 50px 0 0;
    }

    .price {
      width: 160px;
      height: 25px;
      line-height: 25px;
      border: 1px solid red;
      margin: 0 auto;
    }
    
    .miaosha {
      position: relative;
      float: left;
      width: 90px;
      height: 100%;
      color: #fff;
      font-weight: 700;
      text-align: center;
      background: red;

    }

    .miaosha i {
      position: absolute;
      top: 0;
      right: 0;
      width: 0;
      height: 0;

      border-color: transparent #fff transparent transparent;
      border-style: solid;
      border-width: 25px 12px 0 0;
    }

    .price .origin {
      font-size: 14px;
      color: gray;
      /* 设置删除线 */
      text-decoration: line-through;
    }
  </style>
</head>

<body>
  <div class="box1">
  </div>

  <div class="price">

    <span class="miaosha">￥1200<i></i></span>
    <span class="origin">￥9190.00 </span>

  </div>
</body>

</html>